Optimal. Leaf size=41 \[ -\frac {b \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {a \coth (c+d x)}{d}-\frac {a \coth ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3299, 3855,
3852} \begin {gather*} -\frac {a \coth ^3(c+d x)}{3 d}+\frac {a \coth (c+d x)}{d}-\frac {b \tanh ^{-1}(\cosh (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3299
Rule 3852
Rule 3855
Rubi steps
\begin {align*} \int \text {csch}^4(c+d x) \left (a+b \sinh ^3(c+d x)\right ) \, dx &=\int \left (b \text {csch}(c+d x)+a \text {csch}^4(c+d x)\right ) \, dx\\ &=a \int \text {csch}^4(c+d x) \, dx+b \int \text {csch}(c+d x) \, dx\\ &=-\frac {b \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {(i a) \text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-i \coth (c+d x)\right )}{d}\\ &=-\frac {b \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {a \coth (c+d x)}{d}-\frac {a \coth ^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 76, normalized size = 1.85 \begin {gather*} \frac {2 a \coth (c+d x)}{3 d}-\frac {a \coth (c+d x) \text {csch}^2(c+d x)}{3 d}-\frac {b \log \left (\cosh \left (\frac {c}{2}+\frac {d x}{2}\right )\right )}{d}+\frac {b \log \left (\sinh \left (\frac {c}{2}+\frac {d x}{2}\right )\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.05, size = 63, normalized size = 1.54
method | result | size |
risch | \(-\frac {4 a \left (3 \,{\mathrm e}^{2 d x +2 c}-1\right )}{3 d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{3}}+\frac {\ln \left ({\mathrm e}^{d x +c}-1\right ) b}{d}-\frac {\ln \left ({\mathrm e}^{d x +c}+1\right ) b}{d}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 131 vs.
\(2 (39) = 78\).
time = 0.28, size = 131, normalized size = 3.20 \begin {gather*} -b {\left (\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d}\right )} + \frac {4}{3} \, a {\left (\frac {3 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} - 1\right )}} - \frac {1}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} - 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 652 vs.
\(2 (39) = 78\).
time = 0.47, size = 652, normalized size = 15.90 \begin {gather*} -\frac {12 \, a \cosh \left (d x + c\right )^{2} + 24 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + 12 \, a \sinh \left (d x + c\right )^{2} + 3 \, {\left (b \cosh \left (d x + c\right )^{6} + 6 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + b \sinh \left (d x + c\right )^{6} - 3 \, b \cosh \left (d x + c\right )^{4} + 3 \, {\left (5 \, b \cosh \left (d x + c\right )^{2} - b\right )} \sinh \left (d x + c\right )^{4} + 4 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} - 3 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 3 \, b \cosh \left (d x + c\right )^{2} + 3 \, {\left (5 \, b \cosh \left (d x + c\right )^{4} - 6 \, b \cosh \left (d x + c\right )^{2} + b\right )} \sinh \left (d x + c\right )^{2} + 6 \, {\left (b \cosh \left (d x + c\right )^{5} - 2 \, b \cosh \left (d x + c\right )^{3} + b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) - b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) - 3 \, {\left (b \cosh \left (d x + c\right )^{6} + 6 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + b \sinh \left (d x + c\right )^{6} - 3 \, b \cosh \left (d x + c\right )^{4} + 3 \, {\left (5 \, b \cosh \left (d x + c\right )^{2} - b\right )} \sinh \left (d x + c\right )^{4} + 4 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} - 3 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 3 \, b \cosh \left (d x + c\right )^{2} + 3 \, {\left (5 \, b \cosh \left (d x + c\right )^{4} - 6 \, b \cosh \left (d x + c\right )^{2} + b\right )} \sinh \left (d x + c\right )^{2} + 6 \, {\left (b \cosh \left (d x + c\right )^{5} - 2 \, b \cosh \left (d x + c\right )^{3} + b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) - b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right ) - 4 \, a}{3 \, {\left (d \cosh \left (d x + c\right )^{6} + 6 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + d \sinh \left (d x + c\right )^{6} - 3 \, d \cosh \left (d x + c\right )^{4} + 3 \, {\left (5 \, d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )^{4} + 4 \, {\left (5 \, d \cosh \left (d x + c\right )^{3} - 3 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 3 \, d \cosh \left (d x + c\right )^{2} + 3 \, {\left (5 \, d \cosh \left (d x + c\right )^{4} - 6 \, d \cosh \left (d x + c\right )^{2} + d\right )} \sinh \left (d x + c\right )^{2} + 6 \, {\left (d \cosh \left (d x + c\right )^{5} - 2 \, d \cosh \left (d x + c\right )^{3} + d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) - d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 62, normalized size = 1.51 \begin {gather*} -\frac {3 \, b \log \left (e^{\left (d x + c\right )} + 1\right ) - 3 \, b \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right ) + \frac {4 \, {\left (3 \, a e^{\left (2 \, d x + 2 \, c\right )} - a\right )}}{{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{3}}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.69, size = 110, normalized size = 2.68 \begin {gather*} -\frac {4\,a}{d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}-\frac {8\,a}{3\,d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}-1\right )}-\frac {2\,\mathrm {atan}\left (\frac {b\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {b^2}}\right )\,\sqrt {b^2}}{\sqrt {-d^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________